package com.zhq.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.Type;

/**
 * @Project ：learn-spring-boot-3
 * @File ：HelloController.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/3/27 11:02
 * @Description ：For study.
 */


// @ResponseBody
// @Controller
@RestController // 同时包括ResponseBody和Controller
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "HELL, MAN, SPRING BOOT THREE HERE!!!";
    }
}
